package com.job.Gai_Yian.homework0701;

/**
 * @author DELL
 * @version 1.0
 * @since 2022-07-03 23:28:54
 */
public class MyTool1 {
    public static int[] bool(int[] arr) {
        int i, j, temp;
        for (j = 1; j <= arr.length - 1; j++) {
            for (i = 1; i <= arr.length - j; i++) {
                if (arr[i] < arr[i + 1]) {
                    temp = arr[i];
                    arr[i] = arr[i + 1];
                    arr[i + 1] = temp;
                }
            }
        }
        return arr;
    }
}



